fixed env_tool bug