Fixed qr function to fit numpy update.