fix index translation