fix a bug assigning thumbnail size