fixed change attribute bug