Fixed bug about pressing return twice.