fixed Firefox bug createOnEnter fxn