Fixed, using len when sending messages beck to the client. Thank you Jason.