Fixed the public log issue and related tests.