Fixed return value for prepare_url() method