fixed several problems due to FEM interface changes