Fix ws pack error

fixes krisztianfekete/lib#2
Merge pull request #3 from matelakat/fix-ws-pack

Fix ws pack error