Attempts to fix RefMap.