fix restadapter