Fix for lingering transactions and empty type trees.