Fixed bug on attributes