Remove trailing comma showing up on index