Fixed wrapAll() bug on partial files