Fix inflating zero-length data issue

Fix #1