The maxStack attribute sets the maximum amount of an item that will stack together. The default for this attribute is 64. For tools, this should always be manually set to 1; if a tool is in a stack of any more than 1, the entire stack will be damaged, not just the top item.

The correct syntax for this attribute is maxStack[0] = 64;