Fixed a bug in SwarchClient