fix continue bug