fixed bug in reassemble.c