fix bug with line