fix enter key bug