Fix set_environment

Signed-off-by: Youhei SASAKI <uwabami@gfd-dennou.org>