fix bug in logging statement in profile refresh