Don`t reboot if active window (I might be typing)

Fix variable