Fixes to ODEs and QR