removed bug in removeEntry()