Fix a concurrent modification which caused a chunk leak