Fixed Multi-threaded bug

Had Read lock when should have been write lock