fixed error with next_url with results do not exist