Fixed problems with rc.cup