fix bug when click by mouse