Fixed genetic optimisation handler and index loop in initialise of genetic optimisation.