Fixed sending messages after connection established