fix firefox overflow bug