improved debugging message when encounter 'wrong # of attrib'