fix bug with fixed joints