Fixing bad RMD file