fix redundancy haschange event and repaint bug