Bugfix: Client data transmission

Trim data packet to correct length