bugfix for lines with NA