fixed an annoying bug in XML completion when using yasnippet.