fix bug in horizon generation
Merge branch 'master' of https://github.com/tulip-control/tulip-control