Fixed some small errors that were generated by genetic algorithm script