try to avoid the 'no JSON object' error (imgfac isn't very polite)