fix incorrect pointer indirection