fix rigid not compatible with minimization (Navid Kazem)

Try to use “fix restrain” instead.