Fixes handling of blank lines