fix transactions relationship