Fixed minor newlines detection bug