Dealing with the locked index