fixed incorrect parsing of dictionary