fix base upload limit logic