Fixing bug in querywid