fix bug when aop configured