Don't ever take log(0).