fix restraints