Fixed a bug with empty ADS