error occured in fixing dashboard refactor