Fixing some Swift code.