fix error when there are no entries for a user
minor