fixed auto delete and draw line object