fix index for master