post env bug fix