Fixes error in thousands separator formatting

Fixes #389