Fix URL issue for rest model