Prevented RMS from return inf