Work around log(0)