Fixes finishing order for transactional operation