Fixed a bug where closing elements weren't loading the correct auto completion suggestions.