Fixed a wrong variable name in "generate_candidates.m"