bugfix with autostart