Fixing swift user attribute