fixes issue with complex dict schemas