small fix for autostart