fixed restriction deleting