Remove negative indices.