Fixed faulty GA code.