Fixed bug on enter event