fix log printf bug