fixed the result size bug in Samples