fixing start up crashing