fix wrong pointer