fixes a problem with empty lines.