Fix thumb queries