Fixed issues with router.php