fixed a bug in samplingparsing