Fix sampling error.