Correctly handle overflow content