Replace query class name