fixed ad bug