fix the error on the size of the attribute