Fix 'this' scope in sendDirection