Fixed logging exception.