fix firefox display bug