fixed domain error in rvs