fix for chain download stall when switching from headers to merkleblocks