really weak bug fix for img.length