fixing memory pinning support