Fixed attribute dm bug.