fixed bug in delete tracking