fixed security issues for Ad