fix zero-length manifest problem