fixed focus bug