Fix an issue that causes retrieving incorrect URL.

PHP-Intro Assignment 6