Fixed bug where sample orders in IR and rest not necessarily the same