bug in log2