Fix bug in Deflate implementation