dashboard query fix