Fixed problem that caused all messages to be sent with size 0.