Fixes #8. Repated requests to the same endpoint could occasionally return Internal Server Error