Fix issue with transaction