fix the log2f error