Fix cursor packet size check.