getSample broken