Fixes dictionary bug