Fixed an error in the IP2 and 8 fix ranges in the genconstraints method.

This error was causing weird corrections to be computed in IP2.
Templates replaced accordingly.