Fixed problem with auto logging.