Fix log output (close #12)