fix bug: ensure default value is null