fix internal server error on partial urls