Fixed RBMEnergy.java bug