fix bug in mod query interface