Fixed infinite recursion bugs found in transaction extensions