fixed the bugs of updating and draw mouse.