Fixed bug in Optimizer.