solved bug in Request.php if there are no links