fixed bugs in EctypalElement.java