fix for broken query on getwith