Some small fixes. Still don't know why objects are getting corrupted.
Fixed the weird message passing bug.

Turns out unpacked objects shouldn't go out of scope if you want to use
the data thats inside them.