fixed bug in point delete