Fix behaviour of bezier lines.