Fix recursive transformer