bug in control horizon generation, updated cont ex