log fixing