Prevent double ma styles

Fixes #6647