fixed buggy env option