Fixed attribute bug