Minor updates to fix errors.

Fix errors with logMessage.