Fix for transaction to accept a dynamic model.