Fixed bug that would sometimes cause the last log in an entry to be duplicated