fix logic in hidden_candidates.rb