Fixed critical bug at startup.