fixed a bug with the trailing comma