Fix margin validation