fixed possible redirecting issue for home_page_director.php