fixed creating transactions