Fixed merging problems

The body weren't being connected and head and body scripts were switched
sometimes.