Fixing logging statement