myenv_init bug fix