Fixed issue with packets larger than 127 bytes