Fix issue with auto complete when more than 1 editor has been created