fix cursor issue with single editor