Fix the chunk count. Still has one bug: for large mlod resource, two bytes will be missing.