Fix taking Math.log(0)