enter key bug fix