MDM enable goes in loop