fixed bugs of no index.php