fixed issue with inTransaction