Fixing log parsing