fixed Emap compilation