bugfix when attribute is an array