Fixed #6 a very important bug with focus on some windows