fixed focus gained bug