Fixed a bug where non-zero minimum range values were not generating the correct angle