Fix typo on editor retrieval from environment