fix log issues