fix autorestart with options