Fixing issue #3 (thanks, @chicagoben)

Sub-messages would cause a TypeError to be thrown