fixed bug with body getting corrupted