fixed incorrect pointer