Fix CA selection logic

would only work when run with -debug due to 2 misplaced continue
statements.