fixing the destroy issue of idAttribute