index: fix type