Fixed Broken Delete Restrictions on Code Types