Adding routine for fixing old, bad constraints