fix thumbnail Preview bug