Fixed errors on startup