Fix overrides methods to prevent segmentation fault.
Merge pull request #6544 from openscholar/segmentation-fault

Fix overrides methods to prevent segmentation fault.