Fixed problem on last (k)bytes of a file, now it should unpack properly