fix createEnvData