fix rest model