Use symblized environment string

Hi, I found an issue when I set the environment as a string. Could you consider to merge this fix?