log of 0 bugfix.