Fixed the start up crash.