fixed bug I made with drawing line in history.