fixed entropy log(0)