Fixed writeLock