Fix bug in _buildURL