Fix the bug of component not appearing in candidate.