fix EMD class