solved AD bug