fixed logging statement