fix autostart problem