fix final comma issue