Fix scoping error on send