fixed bug in which some lines were not removed from screen while tapping buttons furiously