fix stack overflow crossbow