fix bug copy attr in bloc