MY ADS: Fixed Nullpointer exceptoin