Fix a bad access after recent change about ->p returning objects by reference