Fix margin cutoff