minor fix, there is no $attrs[name]