Fixed a bug with auto-completion of names.