Fixed issue with private/public function overriding