Fixed problem with autostarting