fix index insert