fixed the body close (should have been deferred)