fix bugs in SwiftSnails/common.h