Fixed auto-complete selection error.