fixed bug causing AttributeError on engine/query matrix [finishes #78222198]