fixed bug in file reader that omitted the last index for each quad