Fixed a couple of findFirstObjectByKeyValue to perform lookup from trans object.