Fix continue condition