Fix incorrect img index