fix contract template