add some protection on rc module
fix typo
Merge pull request #1089 from ruil2/rc_fix_1

    add some protection on rc module