Fixed logging of data update.
Fixed possible NPE.