Fix nsga2 example to be executed from anywhere