Fixed Nav _data generation.

Wasn't counting the total number correctly and generated a spurious
comma. Fixed now.