Fix uggly little bug when finding in finding the active window of a process