dashbaord query fix