fix continue loop