ProtectedAttributes support bugfix