fix index core bug