Minor bug fix with multiple text editors