fixed display bugs on firefox