Fixed attribute protection bug