fix multi new lines' bug