Fix logging when using hash