Fix transaction unregister order