Fixes logging output