Fixes mixed-up inputs for range and position from commit #5892146.
Fix issue with 'off' being a reseved or used locale key.