fixed positive sampling bug