fixed update and autostart bug