fix rpt struct