fixed a continue bug