Correct treatment of margins