Array as an attribute error