[Magic-HD] Code tweak