fix bug on  removeAttrNameSpaces