fix new ptr