Fixed text block and list range finding issue