Fix issue where protected method is not found.