bug fixed for dashboard total purchase