Fixed a bug in auto-creating advisors