FIX: rfiles was not opened