fixed log 0