Fixed a startup bug