fixed env variabl bug