fix a bug in surface sampler