fix index for windows8