environment: fix nil value