fixes #116
Thread safety issue on enum converter.