xamanager -> fix begin query