Fixed bug causing transactions to not be started all the time