fix regression: mixin guards compare units correctly