Fix syncing of min and max values from regex