minor rest api thumbnail bug fix