Move 'fixRangeOverflow' into a try catch
Merge pull request #36 from metalabdesign/try_catch_range

Move 'fixRangeOverflow' into a try catch