bug in send_patch