Fixed env setting issue.