fixed delete constraints