fix SwiftCounter in beta 4