fixed small issue with getFinalRevenue