fixed critical error in logger (new line problem)