fix layout in safari. closes #519