fixed bug with no entries