fix thumbnail_close (fix #17)