fix firefox overflow error