fix a bug, when size=N*512 send an empty package