Fixed end-of-entry error