overflow fix

sometimes, sequences over 65536 are sent. why?