Fixed a fundamental error in both versions of 149. Surprised it did not affect the answer.