Fixes the bars in eventres.html. (Copy & paste from period.html)