fix protected function cause strict error