Fixed parsing of diff