Fixes dictionary errors