Fix display bug for firefox