fixing dict parsing