Fix formatting and local var declaration for candidates