fixing scaling for joint limits