bugfix for empty lines