make sure range exists before using it
don't use rnage if non existed when applying diffs