fix the wrong pointer