fix error on attribute array