fixed probable bug in getSampleValue...() methods