fix editor autodetect