Fixed reading multiple files bug.