Fixed error in commiting transaction after second run of process due to object model not being serializable.