ugly patch to solve the return key issue that clears the field