Fix transaction, remove debug