remove bug in rd files