Fixed problems with protected fields.