fixed bug that occurred when there was no most recent entry