fixing startup exception