editor: bugfixes, autoset repository