bugfix: margin/padding with different number of variables