fix some sample bug