Fix bug in ecore