bugfix in rrm.py