fixed enter key bug