Fix log appending to the wrong DOM element. DE6853