proper fix for thumbnail issues