fixed a bug installing autostart