fix click coordinate bugs