fix error in logging statement