Fix function spliterOpenClose to work with the new inverse parameter.