fix bad dict