Fix compiler hating about protected fields