fix sample 7 about pointer.