fix bug to register it as a EDM module