fixed bootup bug