fix bug where page is too long for safari