Contract fix

Fix rest contracts