replacd all focus with settimeout focus.
fixed typo