Fixed log messages output

A fix for issue #24