Fixed parsing of capabilities