Fix turning active intent off when window open