fixed bug i just added to target.py while optimizing rationals