This has to be done also when we switch to the entry, otherwise completion for non-local URIs won't work.