fix the issue introduced by newline