fix filename for records