#534 fixed issue with wrong pub/sub var assignment