fixing errors on some pages