fix lose focus issue