fix index in transactions