fix sampling one by one