Fixes issue with range scanning and swallows exception.