fixed deleting features