sample weight fixes