fixed bug when blank lines caused incorrect format