fix for handling lists with one blank line only