fix log2d