Fixed bug when ranged maximum for fan controller was not calculated correctly