Fixed variable declarations in the reportkarma controller.