Fixes dictionary copying