Fix bug with Log2() not returning the correct result.