fixed sending messages

Signed-off-by: Jerome Gingras <jerome.gingras@gmail.com>