better check for bad restraints