emf compare deprecated fix