fixed a bug in environment config