Fix affected mask areas not repainted