fix null line bug