fix contract type is null issue