fix the assert failure, which is caused by '/n'