fixed emplty line bug