bugfix for short lines