fixing a start-up crash