Fix function def of rmsavedev