Fixed with wrap transaction, where wrap transaction wasn't committed.

Signed-off-by: Jakob Brandsborg Ehmsen <jakobehmsen.github@gmail.com>