Fix pointer to parent class.