Fix on sendMessage event