bugfix for line