Corrects php-errors on pages