Fixed bug in direct_index which resulted in write fails for large files.