fix enter bug