bug fix for all object count when delete a key