fix the markpanel's bug.