Fix some typos

The variable deflate is called defalte in some places and deflate in others. It should be deflate everywhere