Fixes logging bugs.