Fixed bug with the onBlur event