fixed nil error in customer ranking report