fix remove autostart failed