fixed a problem that was introduced by some unexpected behavior of UrlHelper