commit fix for segrid nil environment issue