Fix enter pressed issue