Recalculate maxRN if userDefined has been set to -1 or 0