Fixing bugs for attribs not clearing.