Fixed all the errors during startup