bug fixing swift user/key