fix for auto when value is null or undefined