Fixed a few misplaced log messages.