Limit the clearing on max reading

Only clear to the range which is known to be safe (i.e. max_range).