fixing bug in del_points