Fix refresh bug

-- There was a bug that happened when deleting all entries then hitting
refresh