Fixed invert line start and end