Fix cursor button problem