Fixed a display issue when there are no entries in the database