Fix joint not being attached correctly on initialization.