Bug fix in reportViewer. Renamed some variables in reportRules.