fixed a bug where the viewer cache wouldn't clear  the disk