Fixing log statements