fixed enter bug