fixed error in novelty optimize routine