Fix RD file