fix auto-complete requirement