model transaction fix