Bugfixes for rosenbrock benchmark