Fixed for empty line correction bug