fixed some startup execptions