fix thumbnail cache bug