bugfix for relative bad lines