Fixed bug for unlimited downloads

If '0' was set for unlimited downloads user was unable to download anything.