Correcting reference to nil objects when starting server for the first time.