fixed bug with handling onBlur event