fix index.php php errors