Fixed the number of samples