fix c ref in make check and rms unneeded valid checker