corrected autostart problem