log fixing minor bug