fixing bugs class SelectModeABC.java