fix add/remove autostart