Fix log error

see #169