Fix joint dos bug