fix issue with pressing enter