Fixed a bug that prevented adding an item using the return key