fixing joint offsets