take care of a notice about missing variable index