Fixes for log