fixed bug in sending bundle