Singleton in Swift fix