fix manager auto-complete query