small fixes in urlhelper