Fix inflating zero-length data issue