Fix sample bug 21301