fix for data order in SAM dataframes