fixed focus bug with multiple editors