Fix incorrect pointer type