handle error for thumbnail