fix #2 : remove comma at end of hash