Fixed most of the warnings in CandidatesModule.