Fixed bug in send_capsule_handler

can't send dictionary.