fix index lowercase bug