Fix small error

Also add OS gang judger methods.