fix transactions