Deal with HSH setenv not working