Properly set domain based on range of values.