Fixed case when environment does not assigns in helper