Fix crash with total entries