fixed check for thumbnail