remove trailing , (fixes #22)