edited
fixed the bug on deleting contraints