Fix - assign default value to data only when it's undefined.