Fixed entry deletion bug