fixed bug in send capsule handler.