Fixes dict on arrays