fixing a minor bug with ad types