#167 fixed bug when deleting values