Fix missing variables on autostart