fixing minor issues after stratified sampling merge