fix ws long to int
Merge branch 'hotfix/v1.0.4'