Fixed bug with number of candidates for sidebar