Fixed the file breaking when larger than 4kb.