temporary fixes to get rid of errors in Unit.java and LEModel.java