fixed bug in RD-files