fix bug in SUB socket creation

Fixes #20.