Fixed enrolled function in Environment.java