fixed creation of indexes where > 787 bytes