fix bug on assigned attributes