Bug fix in rc.py