Bug found and fixed. Wrong key for new line detection.