linear.qr divison by zero bug fixed