Fixed assertion error in rca/models.py