Fix a IllegalArgumentException in msgGang method