Bus firm in crash had previous safety violations