Fixed problems with override/implement of protected methods.