fixed deleting permission