found bug that caused 2 redraws