fixed bug when not finding entry