another bug fix for protected methods