Sorted index.php + vanishing templates headache