Fixed log issue with Printf