Update index.php

fixed bug and dupe