bug fix in delattr