Fix rlog script