Fix bug with concurrent loading and add a test case.