Fixed transaction creation