fixed a wrong pointer