Fixed parsing of AMF material metadata