FreeList index calculation bug fixed