Beam.java changed
bug fixes