Fix bug with changing cursor color for scenario text editor