fixes #611
Merge pull request #611 from bitovi/queue-serialize-fix

Serialization