fix comparison in rcS