Fixed an error in sending data from from connection module.