Fixes problem with windows logging.