Fix margin box setting