Fix NLog issues