fix bug depending on $ENV variable.