Fixes bug where thumbnails container wasn't properly removed.