Remove useless attributes