Fix for upload limit

Fix for when the upload limit is set to 0.