fix bug caused by log(0.0) in optimizer.c