implement delete attribute by reorganize hidden class

It seems i have make a mistake. I thought instance attributes should be checked first. I will modify the logic.