fix restserver