fixing autostart