fix the parsing of objects