More tatonnement fixes

Fixed typos which caused errors with the algorithm