fix advisor bug