bug in attrs with weight column specified