fixed wrong transaction handling and updated version