Fix bug: NullPointerException in ADManager.addAD()