GetUnsafePtr interface bug fix