Fix up custom level write to file.