fix issue with getting url params when route was not found