fix new line bug