Fix for the thumbnail delete