Fixing the logs parser.

see #492