fixed onfocus issue