Fix some syntactical errors. Log when parsing of line failed.