fix log syntax bug