Fixed logging of value