fixed bug in addBufferPositiveLabels