fixed startup bug