fix case where 'entry' was not assigned