Fix log2 thing