Fix weird behaviour due to css