Fixed a few bugs that stopped rtl_osv21.py.